package com.example.note.database;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "reminder")
public class ReminderEntity {
    @PrimaryKey(autoGenerate = true)
    private int id;
    
    private String title;
    private String content;
    private long reminderTime; // 提醒时间戳
    private boolean isCompleted; // 是否已完成
    private boolean isRepeating; // 是否重复提醒
    private String repeatType; // 重复类型：daily, weekly, monthly
    private long createdTime;
    
    public ReminderEntity() {
        this.createdTime = System.currentTimeMillis();
        this.isCompleted = false;
        this.isRepeating = false;
    }
    
    // Getters and Setters
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public long getReminderTime() {
        return reminderTime;
    }
    
    public void setReminderTime(long reminderTime) {
        this.reminderTime = reminderTime;
    }
    
    public boolean isCompleted() {
        return isCompleted;
    }
    
    public void setCompleted(boolean completed) {
        isCompleted = completed;
    }
    
    public boolean isRepeating() {
        return isRepeating;
    }
    
    public void setRepeating(boolean repeating) {
        isRepeating = repeating;
    }
    
    public String getRepeatType() {
        return repeatType;
    }
    
    public void setRepeatType(String repeatType) {
        this.repeatType = repeatType;
    }
    
    public long getCreatedTime() {
        return createdTime;
    }
    
    public void setCreatedTime(long createdTime) {
        this.createdTime = createdTime;
    }
}